
<%@users.each do |user|%>
  <%=user.name%><%=link_to "添加状态机",new_user_machine_path(user)%><br/>
  <%user.machines.each do |machine|%>
	  <%=machine.name%><%=link_to '编辑',edit_user_machine_path(user,machine)%>|
		  <%=link_to '删除',user_machine_path(user,machine),:method=>'delete'%>
  <%end%>
<%end%>
